//
//  LNViewModel.h
//  LNBeeHive
//
//  Created by wwww on 2019/9/30.
//  Copyright © 2019 淘发现1iOS. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface LNViewModel : NSObject
// 参数
@property (nonatomic, readonly, copy) NSDictionary *params;
// 控制器标题
@property (nonatomic, readwrite, copy) NSString *title;
// 如果设置了该值，那么当Push到一个新的控制器,则导航栏左侧返回按钮的title为backTitle
@property (nonatomic, readwrite, copy) NSString *backTitle;
// 统一错误处理
@property (nonatomic, readonly, strong) RACSubject *errors;
/// create `viewModel` instance
- (instancetype)initWithParams:(nullable NSDictionary *)params;

- (void)initialize;
@end

NS_ASSUME_NONNULL_END
